package com.ecoolex.ying.space.core.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.ying.space.core.mapper.UserWorksShoppingMapper;
import com.ecoolex.ying.space.pojo.QueryShopWindowGoodsDTO;

public interface UserWorksShoppingDAO extends UserWorksShoppingMapper {
	
	long countByUserId(@Param("userId") Integer userId);
	
	List<QueryShopWindowGoodsDTO> queryByUserId(@Param("userId") Integer userId,@Param("sorts") String sorts , @Param("page") Page page);
	
	long countByWorksId(@Param("worksId") Integer worksId);
	
	List<QueryShopWindowGoodsDTO> queryByWorksId(@Param("worksId") Integer worksId,@Param("sorts") String sorts , @Param("page") Page page);
}